/*
 * CursorSupport.h
 *
 *  Created on: 2010-9-6
 *      Author: wenjian
 */

#ifndef CURSORSUPPORT_H_
#define CURSORSUPPORT_H_

namespace Ed {
  class Cursor;

  class CursorSupport {
    public:
      CursorSupport():cursor(NULL){

      }
      virtual ~CursorSupport(){}

      /**
       * 返回光标
       */
      virtual inline Cursor* getCursor() const{
        return cursor;
      }

      /**
       * 复位光标
       */
      virtual inline void resetCursor(){
        cursor = NULL;
      }

      /**
       * 设置光标
       */
      virtual inline void setCursor(Cursor* c){
        cursor = c;
      }

    protected:
      //当前光标
      Cursor* cursor;
  };

}

#endif /* CURSORSUPPORT_H_ */
